﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LiquidTrading.RapidAdditionHelper.Credentials
{
    public abstract class FIXCredentials
    {
        public FIXCredentials(string id, string fixVersion, string senderId, string targetId, string fixHost, int fixPort, int heartbeatInterval)
        {
            Id = id;
            FIXSenderId = senderId;
            FIXTargetId = targetId;
            FIXHost = fixHost;
            FIXPort = fixPort;
            FIXHearbeatInterval = heartbeatInterval;
            FIXVersion = fixVersion;
        }

        public string Id { get; private set; }
        public string FIXVersion { get; private set; }
        public string FIXSenderId { get; private set; }
        public string FIXTargetId { get; private set; }
        public string FIXHost { get; private set; }
        public int FIXHearbeatInterval { get; private set; }
        public int FIXPort { get; private set; }

        public override string ToString()
        {
            return String.Format("Sender:{0} Target:{1} Host:{2} Port:{3} Heartbeat:{4}", FIXSenderId, FIXTargetId, FIXHost, FIXPort, FIXHearbeatInterval);
        }
    }
}
